﻿<script src="/Style Library/Niteco.Intranet/Js/TabbedWebparts.js"></script>
<script src="../../Style Library/Niteco.Intranet/Js/spimagefieldupload.js"></script>
<script type="text/javascript">
    //Hover Annoucement Item
    window.onload = function () {
        $('.announcement_item').hover(
            function () {
                var _this = $(this);
                _this.css({ "border-top": "1px solid #E9E9E9" }).find('.announcement').css({ "border-top": 0 });
                _this.next().css({ "border-top": "1px solid #E9E9E9" }).find('.announcement').css({ "border-top": 0 });
            },
            function () {
                var _this = $(this);
                _this.css({ "border-top": 0 }).find('.announcement').css({ "border-top": "1px solid #E9E9E9" });
                _this.next().css({ "border-top": 0 }).find('.announcement').css({ "border-top": "1px solid #E9E9E9" });
                if (_this.is(':first-child')) {
                    _this.find('.announcement').css({ "border-top": "1px solid transparent" });
                }
                if (_this.parents('#calendarControl').length > 0) {
                    if (_this.is(':first-child')) {
                        _this.find('.announcement').css({ "border-top": "1px solid #E9E9E9" });
                    }
                }
            }
        );
    }
</script>